package com.ufm.user.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.ufm.user.pojo.User;

@Repository  
@Transactional
public interface UserMapper {
	public List<User> findAll(Map param);
	public int findAllCount(Map param);
	public User findUserById(long id);
	public void insert(User user);
	public void delete(long id);
	public User findByName(String name);
	public void update(User user);
	public void updatePwd(User user);
	public List<String> findAllEmail();
	public List<String> findAllUserLogin();
	public List<String> hasRight(String userLoginName);
	public List<User> findByDept(int deptId);
	public String getGunDongBoBao();
	public int hasOneRight(Map params);
	public List<User> getUserIdAndName(Map params);
	public List<User> findAllConAdmin(Map param);
	public int isAdmin(long id);
	public void registUser(User user);
	public int isSelectAllRoles(long id);
}
